package com.yzq.model.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yzq.model.entity.Comments;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class CommentsVO {
    /**
     * 评论ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 图片ID
     */
    private Long pictureId;

    /**
     * 用户
     */
    private UserVO user;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论时间
     */
    private Date createTime;

    /**
     *  父评论ID
     */
    private Long parentId;

    private List<CommentsVO> childComments;
}